//
//  GameController.h
//  Tables
//
//  Created by mathias Muller on 8/31/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Challenge.h"

@interface GameController : UIViewController {
	IBOutlet UIPickerView *result;
	IBOutlet UILabel *operationLabel;
	IBOutlet UILabel *errorLabel;
	IBOutlet UIButton *okButton;
	IBOutlet UITextField *textResult;
	IBOutlet UIProgressView *lengthControl;
	Challenge * newChallenge;
	UIColor *previousColor;
	
}
@property (nonatomic, retain) UIPickerView *result;
@property (nonatomic, retain) UILabel * operationLabel;
@property (nonatomic, retain) UILabel * errorLabel;
@property (nonatomic, retain) UIButton *okButton;
@property (nonatomic, retain) UITextField *textResult;
@property (nonatomic, retain) UIProgressView *lengthControl;
@property (nonatomic, retain) UIColor *previousColor;
@property (nonatomic, retain) Challenge * newChallenge;

- (IBAction)okPressed:(id)sender;

- (void)init:(Challenge*)newChallenge;
- (void)displayQuestion;
- (void)cancelGame;

@end
